<?php

/**
 * @version		$Id: projid.php 2011.08.11 thierry $
 * @package		admin.helpers
 * @subpackage	com_projid
 * @copyright	Copyright (C) 2011 Pojid All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access to this file
defined('_JEXEC') or die;
 
abstract class ProjidHelper
{
	/**
	 * Configure the Linkbar.
	 */
	public static function addSubmenu($submenu) 
	{
		JSubMenuHelper::addEntry(JText::_('COM_PROJID_SUBMENU_MESSAGES'), 'index.php?option=com_projid', $submenu == 'messages');
		JSubMenuHelper::addEntry(JText::_('COM_PROJID_SUBMENU_CATEGORIES'), 'index.php?option=com_projid&view=request', $submenu == 'request');
		// set some global property
		$document = JFactory::getDocument();
		$document->addStyleDeclaration('.smal_report {background-image: url(../components/com_projid/images/small_report.png);}');
		if ($submenu == 'request') 
		{
			$document->setTitle(JText::_('COM_PROJID_ADMINISTRATION_REQUEST'));
		}
	}
}